<template>
  <img alt="Vue logo" src="./assets/logo.png">
  <Son :demo="hello" @say="speak">
    <div>我是插槽中的苏祥</div>
  </Son>
</template>

<script>
import { ref } from 'vue';
import Son from './components/son.vue';
export default {
  name: 'App',
  components: {
    Son
  },
  setup(){
    let hello = ref("你好啊")
    const speak = (name)=>{
      console.log("你好啊"+name);
    }
    return {
      hello,
      speak,
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
